<%-- 
    Document   : candidatureStudent
    Created on : 8 janv. 2015, 14:55:01
    Author     : wouewoue
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
<fieldset><legend> Candidatures  </legend></fieldset>
<p style=" color: red"> ${errormessage}</p>
<c:if test="${empty listCan}">
    <h3>Try Again. No internships here ! </h3>
</c:if>
<c:if test="${not empty listCan}">    
    <c:forEach var="current" items="${listCan}">
             
                      <h3>${current.intern.title}</h3> 
                        <div class="row">
                            <div class="col-lg-4">
                                <span> <b>CompanyName :</b> ${current.companyName} </span>
                            </div>
                             <div class="col-lg-4">
                                <span> <b>Mail :</b> ${current.comMail} </span>
                            </div>
                             <div class="col-lg-4">
                                <span> <b>Status : </b > <span style="color:orange">${current.status}</span></span>
                            </div>
                        </div>
                        <br/>    
                        <div class="row">
                            <span> <b>&nbsp;&nbsp;&nbsp Description :</b> ${current.intern.description} </span>    
                        </div>
                                                
                        <div class="row">
                            <div class="col-lg-4">
                                <span> <b>Duration :</b> ${current.intern.duration} </span>
                            </div>   
                        </div>
                        <br/>    
                        <div class="row"> 
                                                          
                            <div class="col-lg-4">
                                     <a href="/WebApp/writeNotif/3" type="button" class="btn btn-primary">Write Notification</a>
                            </div>   
                            <c:if test="${(current.statusId !=3) && (current.statusId !=5)}">    
                            <div class="col-lg-4">
                                     <a href="/WebApp/askConvention/${current.applicationId}" type="button" class="btn btn-success">Ask internship agreement</a>
                            </div>                    
                            </c:if>  
                            <div class="col-lg-4">
                                     <a href="/WebApp/cancelApplication/${current.applicationId}" type="button" class="btn btn-danger">Cancel</a>
                            </div> 
                        </div>
               

</c:forEach>
</c:if>
